@charset "UTF-8";

@import "displaFlex";



@safeWidth:1100px;        //安全宽度

@safeMainColor:#01cbe9;       //主题颜色
@safeMinorColor:#ff6f6e;       //主题颜色

@borderColor:#dcdcdc;     //边框颜色
@25mainWordColor:#252525;   //文字主体颜色
@4aviceWordColor:#4a4a4a;   //文字副级颜色
@99minorWordColor:#999999;  //文字次要颜色


.w_h(@w_h){
  width: @w_h ;
  height: @w_h ;
}

//文字溢出
//多行
.wordSpaceClamp(@number){
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp:@number;
  overflow: hidden;
}
//单行
.wordSpaceClamp{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.hover(@color){
  &:hover{
    background-color: @color;
    color: #FFFFFF;
    text-shadow: 1px 3px 3px rgba(0, 0, 0, 0.3);
    transition: all 1s cubic-bezier(0, 0.72, 0.35, 1.12);
  }
}




nav{
  border-bottom: 1px solid @borderColor;
  .indexHtml{
    margin-left: 40px;
  }
}

//面包屑导航
.nav{
  width: @safeWidth;
  margin:20px auto;
  a{
    font-size: 16px;
    color: #4a4a4a;
  }
  :nth-child(1){
    padding-right: 15px;
    background: url("../publicImg/jiantou-you-hui@2x.png") no-repeat right;
    background-size: 6px 11px;
    margin-right: 10px;
  }
  :nth-child(2){
    padding-right: 15px;
    background: url("../publicImg/jiantou-you-hui@2x.png") no-repeat right;
    background-size: 6px 11px;
    margin-right: 10px;
  }

}


.group{
  position: relative;
  &:after{
    content: '';
    width: 100%;
    border-bottom: 2px solid @safeMainColor;
    position: absolute;
    left: 0;
    bottom: -10px;
  }
}
main{
  width: @safeWidth;
  margin:0 auto;
  .displayFlex;
  .flex-direction-column;

  .innerText{
    .displayFlex;
    .flex-direction-row;

    .searchResult{
      width: 760px;
      min-height: 714px;

      .productResult,.communityResult,.postResult{
        .displayFlex;
        .flex-direction-column;
        width: 100%;
        margin-bottom: 60px;

        .resultTitle{
          .displayFlex;
          .flex-direction-row;
          .flex-align-items;
          margin-bottom:15px;
          p{
            font-size:18px ;
            height: 24px;
            line-height: 24px;
            color:@4aviceWordColor;
            padding-left: 7px;
            border-left: 3px solid @safeMinorColor;

          }

        }


      }


      .productResult{
        .productItem{
          .displayFlex;
          .flex-direction-row;
          .flex-align-items;
          border: 1px solid @borderColor;
          border-radius: 4px;
          width: 720px;
          margin-bottom: 20px;
          padding:20px 20px;
          img{
            .w_h(80px);
            margin-right: 20px;
          }
          .productInfoText{
            .displayFlex;
            .flex-direction-column;
            h4{
              font-size: 20px;
              color:@25mainWordColor;
              font-weight: normal;
            }
            .text{
              .displayFlex;
              .flex-direction-row;
              .productInfo{
                .displayFlex;
                .flex-direction-column;
                width: 181px;

                span{
                  font-size: 14px;
                  color: @99minorWordColor;
                }
              }
              .limitRate{
                .displayFlex;
                .flex-direction-column;
                width: 159px;
                span{
                  font-size: 14px;
                  color: @safeMinorColor;

                }
              }
              .LoanCondition{
                .wordSpaceClamp(3);
                width: 198px;
                font-size: 14px;
                color: @99minorWordColor;

              }

            }
          }
          .clickBtnList{
            .displayFlex;
            .flex-direction-column;
            a{
              font-size:14px;
              line-height: 24px;
              text-align: center;
              color: #ffffff;
              width: 80px;
              height: 24px;
              border-radius: 4px;
              margin-top: 6px;
            }
            :nth-child(1){
              background-color: @safeMainColor;

            }
            :nth-child(2){
              background-color: @safeMinorColor;
            }
          }

        }
      }

      .communityItem{
        width: 720px;
        height:85px;
        .displayFlex;
        .flex-direction-row;
        .flex-align-items;
        border:1px solid @borderColor;
        border-radius: 4px;
        margin-bottom: 20px;
        padding:20px 20px;

        .groupLogo{
          .w_h(80px);
          display: block;
          margin-right:16px;
          border-radius: 6px;
        }

        .infoText{
          .displayFlex;
          .flex-direction-column;
          width: 550px;

          .info{
            .displayFlex;
            .flex-direction-row;
            .flex-align-items;
            margin-bottom: 3px;
            .groupName{
              font-size: 20px;
              color: @25mainWordColor;
              margin-right: 28px;
              font-weight:normal;
            }
            span{
              color:@99minorWordColor;
              font-size: 16px;
              margin-right: 20px;
            }


          }
          .groupJianjie{
            font-size: 14px;
            color:@4aviceWordColor;
            .wordSpaceClamp(2)


          }

        }

        .btnBox{
          margin-left:50px;
          .displayFlex;
          .flex-direction-column;
          a{
            font-size: 14px;
            height: 24px;
            width: 80px;
            text-align: center;
            line-height: 24px;
            color: white;
            border-radius: 4px;
          }
          .fabu{
            background: @safeMinorColor;
            margin-bottom: 5px;

          }
          .go{
            background: @safeMainColor;

          }
        }


      }

      .postItem{


        .displayFlex;
        .flex-direction-column;
        border:1px solid @borderColor;
        padding: 24px 0 24px 24px;
        border-radius: 6px;
        cursor: pointer;
        margin-bottom: 20px;


        //用户信息
        .authorInfo{
          .displayFlex;
          .flex-direction-row;
          .flex-justify-between;
          margin-bottom: 10px;
          .info{
            .displayFlex;
            .flex-direction-row;
            img{
              display: block;
              .w_h(36px);
              margin-right: 20px;
              border-radius: 6px;
            }
            .infoText{
              .displayFlex;
              .flex-direction-row;
              .text{
                .userName{
                  font-size: 16px;
                  color: @25mainWordColor;
                  padding-right: 30px;
                }
                time{
                  font-size: 12px;
                  color: @99minorWordColor;
                }

              }
            }
          }
          .todo{
            margin-right: 24px;
            .displayFlex;
            .flex-direction-row;
            .flex-align-items;
            .adminDelAll,.adminDelThis{
              font-size: 12px;
              color: @99minorWordColor;
              margin-right: 24px;
              display: none;
            }
            .userComment{
              width: 48px;
              height: 24px;
              display: block;
              color: @safeMainColor;
              border:1px solid @safeMainColor;
              border-radius: 4px;
              .hover(@safeMainColor);
              text-align: center;
            }
          }

        }
        //帖子内容
        .postContent{
          margin-left: 55px;
          width: 635px;
          .postTitle{
            font-size: 18px;
            color: @25mainWordColor;
            margin-bottom: 10px;

          }
          .userText{
            font-size: 16px ;
            color: @4aviceWordColor;
            display: inline;

          }
          .adminText{
            .displayFlex;
            .flex-direction-row;
            img{
              width: 218px;
              height: 144px;
              border-radius: 6px;
              margin-right: 12px;
            }
            p{
              width: 420px;

            }

          }
          a{
            font-size: 14px;
            color: @safeMinorColor;
            padding-right: 7px;
            background: url("../publicImg/jiantou-you-hong@2x.png") no-repeat right;
            background-size: 6px 12px;
            display: inline;
          }


        }
        //用户图片
        .postImg{
          margin-left: 55px;
          width: 635px;
          margin-top: 20px;
          .imgList{
            .displayFlex;
            .flex-direction-row;
            li{
              margin-right: 10px;
              position: relative;
              overflow: hidden;
              .w_h(140px);
              border-radius: 6px;

              img{

                position: absolute;
                left: 50%;
                top: 50%;
                -webkit-transform: translate(-50%, -50%);
                -moz-transform: translate(-50%, -50%);
                -ms-transform: translate(-50%, -50%);
                -o-transform: translate(-50%, -50%);
                transform: translate(-50%, -50%);

              }
            }
          }


        }

        //帖子交互信息
        .postInfo{
          .displayFlex;
          .flex-direction-row;
          margin-top: 20px;
          margin-left: 55px;
          position: relative;

          span{
            padding-left:20px ;
            color: @99minorWordColor;
            font-size: 14px;
            margin-right: 16px;
          }
          span:nth-child(1){
            background: url("../publicImg/shequ-dianzan-pre@2x.png") no-repeat left;
            background-size: 16px 16px;
          }
          span:nth-child(2){
            background: url("../publicImg/shequ-liulan@2x.png") no-repeat left;
            background-size: 16px 16px;
          }
          span:nth-child(3){
            background: url("../publicImg/shequ-pinglun@2x.png") no-repeat left;
            background-size: 16px 16px;
          }
          .groupName{
            font-size: 14px;
            color: @safeMinorColor;
            margin-bottom: 30px;
            position: absolute;
            top: 0;
            right: 24px;
          }


        }



      }

    }


    .rightBox{

      .displayFlex;
      .flex-direction-column;
      .rightNewProduct{
        width: 290px;
        height: 715px;
        margin-left: 30px;
        border: 1px solid @borderColor;
        border-radius: 6px;
        padding: 0 10px;
        .toNewLoans{
          display: block;
          height: 50px;
          width: 100%;
          font-size: 24px;
          line-height: 50px;
          text-align: left;
          background: white url("../publicImg/jiantou-you-lan@2x.png") no-repeat right;
          background-size: 10px 17px;
          border-bottom: 1px solid #eeeeee;
          color: @25mainWordColor;
          margin-bottom: 37px;

        }

        .NewLoansProductList{

          .loansItem{
            .displayFlex;
            .flex-align-items;
            .flex-direction-row;
            margin-bottom: 30px;
            .loansLogo{
              display: block;

              .w_h(72px);
              border-radius: 6px;


            }
            .loanInfo{
              .displayFlex;
              .flex-align-items;
              .flex-direction-row;
              .flex-justify-between;
              width: 210px;
              margin-left: 10px;

              .loanInfoLeft{
                h3{
                  font-size: 18px;
                  color: @25mainWordColor;
                  line-height: 35px;
                  font-weight: normal;
                }
                p{
                  font-size: 14px;
                  color: @4aviceWordColor;
                  i{
                    color: @safeMinorColor;
                  }
                }
              }
              .loanInfoRight{
                p{
                  font-size: 16px;
                  color: @99minorWordColor;
                  margin-bottom: 15px;
                }
                a{
                  display: block;
                  width:58px ;
                  height: 36px;
                  color: white;
                  background-color: @safeMinorColor;
                  text-align: center;
                  line-height: 36px;
                  border-radius: 6px;
                  margin-top: 36px;
                  font-size: 18px;
                }
              }




            }

          }
        }

      }
    }

  }



  input::-webkit-input-placeholder{
    color:@99minorWordColor;
  }
  input::-moz-placeholder{   /* Mozilla Firefox 19+ */
    color:@99minorWordColor;
  }
  input:-moz-placeholder{    /* Mozilla Firefox 4 to 18 */
    color:@99minorWordColor;
  }
  input:-ms-input-placeholder{  /* Internet Explorer 10-11 */
    color:@99minorWordColor;
  }



}